package com.seg.system.domain;

import com.seg.common.annotation.Excel;
import com.seg.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 【请填写功能名称】对象 t_spare_part
 *
 * @author ruoyi
 * @date 2023-06-15
 */
public class TSparePart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 物料号
     */
    @Excel(name = "物料号")
    @NotBlank(message = "物料号不能为空")
    private String materialNo;

    /**
     * 名称
     */
    @Excel(name = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
//    @NotBlank(message = "规格型号不能为空")
    private String specification;

    /**
     * 品牌
     */
    @Excel(name = "品牌")
//    @NotBlank(message = "品牌不能为空")
    private String brand;

    /**
     * 当前库存
     */
    @Excel(name = "当前库存")
    private Long stock;

    /**
     * 物料类型 有值为 V 无值空
     */
    @Excel(name = "物料类型")
    private String materialType;

    /**
     * 物料状态1 CLS
     */
    @Excel(name = "物料状态1")
    private String status1;

    /**
     * 物料状态2 CLSAP
     */
    @Excel(name = "物料状态2")
    private String status2;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /**
     * SAP数量
     */
    @Excel(name = "SAP数量")
    private Long sapStock;

    /**
     * 安全库存
     */
    @Excel(name = "安全库存")
    private Long safetyStock;

    /**
     * 最大库存
     */
    @Excel(name = "最大库存")
    private Long maximalStock;

    /**
     * 产线
     */
    @Excel(name = "产线")
//    @NotBlank(message = "产线不能为空")
    private String line;

    /**
     * 工位
     */
    @Excel(name = "工位")
//    @NotBlank(message = "工位不能为空")
    private String station;

    /**
     * 架位
     */
    @Excel(name = "架位")
    private String location;

    /**
     * 图片地址
     */
//    @Excel(name = "图片地址", isExport = false)
    private String imgUrl;

    /**
     * 图纸地址
     */
//    @Excel(name = "图纸地址", isExport = false)
    private String drawUrl;

    /**
     * 是否删除  0正常  2删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMaterialNo(String materialNo) {
        this.materialNo = materialNo;
    }

    public String getMaterialNo() {
        return materialNo;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getSpecification() {
        return specification;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public Long getStock() {
        return stock;
    }

    public void setMaterialType(String materialType) {
        this.materialType = materialType;
    }

    public String getMaterialType() {
        return materialType;
    }

    public void setStatus1(String status1) {
        this.status1 = status1;
    }

    public String getStatus1() {
        return status1;
    }

    public void setStatus2(String status2) {
        this.status2 = status2;
    }

    public String getStatus2() {
        return status2;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setSapStock(Long sapStock) {
        this.sapStock = sapStock;
    }

    public Long getSapStock() {
        return sapStock;
    }

    public void setSafetyStock(Long safetyStock) {
        this.safetyStock = safetyStock;
    }

    public Long getSafetyStock() {
        return safetyStock;
    }

    public void setMaximalStock(Long maximalStock) {
        this.maximalStock = maximalStock;
    }

    public Long getMaximalStock() {
        return maximalStock;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine() {
        return line;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getStation() {
        return station;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setDrawUrl(String drawUrl) {
        this.drawUrl = drawUrl;
    }

    public String getDrawUrl() {
        return drawUrl;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("materialNo", getMaterialNo())
                .append("name", getName())
                .append("specification", getSpecification())
                .append("brand", getBrand())
                .append("stock", getStock())
                .append("materialType", getMaterialType())
                .append("status1", getStatus1())
                .append("status2", getStatus2())
                .append("unitPrice", getUnitPrice())
                .append("sapStock", getSapStock())
                .append("safetyStock", getSafetyStock())
                .append("maximalStock", getMaximalStock())
                .append("line", getLine())
                .append("station", getStation())
                .append("location", getLocation())
                .append("imgUrl", getImgUrl())
                .append("drawUrl", getDrawUrl())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
